var GamePlayLayer =  cc.Layer.extend({

	_backgroundLayer: null,
	_touchLayer:      null,

	ctor : function(){
		this._super();
		this.addCache();

        this.addBackgroundLayer();

        this.addTouchLayer();
    },

    addCache : function(){

//        将plist添加到缓存
        cc.spriteFrameCache.addSpriteFrames(res.gp_TextureOpaquePack_plist);
        cc.spriteFrameCache.addSpriteFrames(res.gp_b01_plist);
        cc.spriteFrameCache.addSpriteFrames(res.gp_Explosion_plist);
    },

	addBackgroundLayer : function(){
		this._backgroundLayer = new GPBcakgroundLayer();
		this.addChild(this._backgroundLayer);
	},
	addTouchLayer : function(){
		this._touchLayer = new GPTouchLayer();
		this.addChild(this._touchLayer);
	},
});
var GamePlayScene = cc.Sprite.extend({
	onEnter : function(){
		this._super();
		var layer = new GamePlayLayer();
		this.addChild(layer);

		var menu = new MMMainMenuLayer();
		this.addChild(menu, 1);
	}
});